﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class LichChieuBUS
    {
        LichChieuDAO lcdao = new LichChieuDAO();
        public DataTable LayDanhSachLichChieu()
        {
            return lcdao.LayDanhSachLichChieu();
 
        }
        public DataTable LayDanhSachMaCaChieu()
        {
            return lcdao.LayDanhSachCaChieu();
        }
        public DataTable LayDanhSachMaPhim()
        {
            return lcdao.LayDanhSachMaPhim();
        }
        public DataTable LayDanhSachMaTinhTrang()
        {
            return lcdao.LayDanhSachMaTinhTrang();
        }
        public DataTable LayMaPhimTheoTenPhim(string tenPhim)
        {
            return lcdao.LayMaPhimTheoTenPhim(tenPhim);
        }
        public DataTable LayMaCaChieuTheoTenCaChieu(string tenCaChieu)
        {
            return lcdao.LayMaCaChieuTheoTenCaChieu(tenCaChieu);
        }
        public DataTable LayDanhSachTimKiemTheoPhim( string tuKhoa )
        {
            return lcdao.DanhSachTimKiemTheoTenPhim(tuKhoa);
        }
        public DataTable LayDanhSachTimKiemTheoCaChieu(string tuKhoa)
        {
            return lcdao.DanhSachTimKiemTheoCaChieu(tuKhoa);
        }
        public void ThemLichChieu(LichChieuDTO lc)
        {
            lcdao.ThemLichChieu(lc);
        }
        public void CapNhatLichChieu(LichChieuDTO lc)
        {
            lcdao.CapNhatLichChieu(lc);
        }
        public void XoaLichChieu(string maPhim,string ngayChieu)
        {
            lcdao.XoaLichChieu(maPhim,ngayChieu);
        }
    }
}
